namespace ResponseLocalLibrary
{
    using IAM.Interface.Model;
    using System;

    public class Business
    {
        public virtual AccountInfo CreateIdentity(Identity xmlrequest)
        {
            IdentityManagement management = new IdentityManagement();
            return management.CreateIdentity(xmlrequest);
        }

        public bool CreateOrganize(OrganizeInfo organizeinfo)
        {
            OrganizationManagement management = new OrganizationManagement();
            return management.CreateOrganize(organizeinfo);
        }

        public virtual AccountInfo DeleteIdentity(Identity xmlrequest)
        {
            IdentityManagement management = new IdentityManagement();
            return management.DeleteIdentity(xmlrequest);
        }

        public bool DeleteOrganize(OrganizeDeleteParameter organizedeleteparameter)
        {
            OrganizationManagement management = new OrganizationManagement();
            return management.DeleteOrganize(organizedeleteparameter);
        }

        public virtual AccountInfo DisableIdentity(Identity xmlrequest)
        {
            IdentityManagement management = new IdentityManagement();
            return management.DisableIdentity(xmlrequest);
        }

        public virtual AccountInfo EnableIdentity(Identity xmlrequest)
        {
            IdentityManagement management = new IdentityManagement();
            return management.EnableIdentity(xmlrequest);
        }

        public ACMMode GetACIModel()
        {
            ACIManagement management = new ACIManagement();
            return management.GetACIModel();
        }

        public AIDelegations GetDelegationInfo(AccountInfo accountinfo)
        {
            DelegationMagagement magagement = new DelegationMagagement();
            return magagement.GetDelegationInfo(accountinfo);
        }

        public Modules GetModuleList()
        {
            DelegationMagagement magagement = new DelegationMagagement();
            return magagement.GetModuleList();
        }

        public ACI GetUserACI(AccountInfo accountinfo)
        {
            ACIManagement management = new ACIManagement();
            return management.GetUserACI(accountinfo);
        }

        public AIDelegations SetDelegationInfo(AIDelegations aidelegations)
        {
            DelegationMagagement magagement = new DelegationMagagement();
            return magagement.SetDelegationInfo(aidelegations);
        }

        public ACI SetUserACI(ACI aci)
        {
            ACIManagement management = new ACIManagement();
            return management.SetUserACI(aci);
        }

        public virtual AccountInfo UpdateIdentity(Identity xmlrequest)
        {
            IdentityManagement management = new IdentityManagement();
            return management.UpdateIdentity(xmlrequest);
        }

        public bool UpdateOrganize(OrganizeInfo organizeinfo)
        {
            OrganizationManagement management = new OrganizationManagement();
            return management.UpdateOrganize(organizeinfo);
        }
    }
}

